<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账户设置 - USDTMarket</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        success: '#36D399',
                        danger: '#F87272',
                        dark: '#1E293B',
                        light: '#F1F5F9',
                        'dark-blue': '#0F172A',
                        'light-blue': '#E0E7FF',
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .glass {
                background: rgba(255, 255, 255, 0.2);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
            .card-hover {
                transition: all 0.3s ease;
            }
            .card-hover:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
            }
            .setting-item.active {
                border-left-color: theme('colors.primary');
                background-color: theme('colors.primary/10');
                color: theme('colors.light');
            }
            .switch {
                position: relative;
                display: inline-block;
                width: 44px;
                height: 24px;
            }
            .switch input {
                opacity: 0;
                width: 0;
                height: 0;
            }
            .slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: theme('colors.dark');
                transition: .4s;
                border-radius: 34px;
            }
            .slider:before {
                position: absolute;
                content: "";
                height: 16px;
                width: 16px;
                left: 4px;
                bottom: 4px;
                background-color: white;
                transition: .4s;
                border-radius: 50%;
            }
            input:checked + .slider {
                background-color: theme('colors.primary');
            }
            input:focus + .slider {
                box-shadow: 0 0 1px theme('colors.primary');
            }
            input:checked + .slider:before {
                transform: translateX(20px);
            }
        }
    </style>
</head>
<body class="font-inter bg-gradient-to-br from-dark-blue to-dark min-h-screen text-light">
    <!-- 导航栏 -->
    <header class="fixed top-0 left-0 right-0 z-50 transition-all duration-300" id="navbar">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between glass border-b border-white/10">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center">
                    <i class="fa fa-exchange text-white text-xl"></i>
                </div>
                <h1 class="text-xl font-bold bg-gradient-to-r from-primary to-success bg-clip-text text-transparent">USDT<span class="text-sm font-normal ml-1">Market</span></h1>
            </div>
            
            <nav class="hidden md:flex items-center space-x-8">
                <a href="#" class="text-white/70 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">购买USDT</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">出售USDT</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">交易记录</a>
                <a href="#" class="text-white/70 hover:text-primary transition-colors">账户安全</a>
                <a href="#" class="text-primary font-medium">账户设置</a>
            </nav>
            
            <div class="flex items-center space-x-4">
                <div class="relative">
                    <button class="flex items-center space-x-2 px-4 py-2 rounded-lg bg-primary/20 text-primary hover:bg-primary/30 transition-colors">
                        <i class="fa fa-user-circle-o text-xl"></i>
                        <span class="hidden md:inline">用户12345</span>
                        <i class="fa fa-angle-down"></i>
                    </button>
                </div>
                <button class="md:hidden text-white text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container mx-auto px-4 pt-24 pb-16">
        <!-- 面包屑导航 -->
        <div class="mb-8 text-sm text-white/60">
            <a href="#" class="hover:text-primary transition-colors">首页</a> &gt; <span class="text-white">账户设置</span>
        </div>
        
        <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
            <!-- 侧边栏 -->
            <div class="lg:col-span-1">
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 sticky top-24">
                    <div class="flex items-center space-x-4 mb-6">
                        <div class="w-16 h-16 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                            <i class="fa fa-user-circle-o text-3xl"></i>
                        </div>
                        <div>
                            <h3 class="font-bold text-lg">用户12345</h3>
                            <p class="text-white/60 text-sm">普通用户</p>
                        </div>
                    </div>
                    
                    <div class="space-y-2">
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-home w-5 text-center"></i>
                            <span>个人主页</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-money w-5 text-center"></i>
                            <span>我的钱包</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-exchange w-5 text-center"></i>
                            <span>交易记录</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-credit-card w-5 text-center"></i>
                            <span>收款方式</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors">
                            <i class="fa fa-shield w-5 text-center"></i>
                            <span>账户安全</span>
                        </a>
                        <a href="#" class="security-item flex items-center space-x-3 px-4 py-3 rounded-lg border-l-4 border-transparent hover:bg-white/5 transition-colors active">
                            <i class="fa fa-cog w-5 text-center"></i>
                            <span>账户设置</span>
                        </a>
                    </div>
                    
                    <div class="mt-8 pt-6 border-t border-white/10">
                        <button class="w-full px-4 py-3 bg-danger/20 text-danger rounded-lg hover:bg-danger/30 transition-colors flex items-center justify-center space-x-2">
                            <i class="fa fa-sign-out"></i>
                            <span>退出登录</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 主内容 -->
            <div class="lg:col-span-3">
                <!-- 账户设置选项卡 -->
                <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 mb-8">
                    <div class="flex flex-wrap border-b border-white/10 mb-6">
                        <button class="tab-button px-4 py-2 text-primary font-medium border-b-2 border-primary" onclick="showTab('profile')">
                            个人资料
                        </button>
                        <button class="tab-button px-4 py-2 text-white/70 hover:text-white transition-colors" onclick="showTab('notification')">
                            通知设置
                        </button>
                        <button class="tab-button px-4 py-2 text-white/70 hover:text-white transition-colors" onclick="showTab('preferences')">
                            偏好设置
                        </button>
                        <button class="tab-button px-4 py-2 text-white/70 hover:text-white transition-colors" onclick="showTab('api')">
                            API管理
                        </button>
                        <button class="tab-button px-4 py-2 text-white/70 hover:text-white transition-colors" onclick="showTab('delete')">
                            删除账户
                        </button>
                    </div>
                    
                    <!-- 个人资料选项卡 -->
                    <div id="profile" class="tab-content">
                        <h2 class="text-xl font-bold mb-6">个人资料</h2>
                        
                        <form>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
                                <div>
                                    <label class="block text-white/70 text-sm font-medium mb-2" for="username">
                                        用户名
                                    </label>
                                    <input type="text" id="username" value="用户12345" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                </div>
                                
                                <div>
                                    <label class="block text-white/70 text-sm font-medium mb-2" for="email">
                                        邮箱
                                    </label>
                                    <input type="email" id="email" value="example@mail.com" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                </div>
                                
                                <div>
                                    <label class="block text-white/70 text-sm font-medium mb-2" for="phone">
                                        手机号
                                    </label>
                                    <input type="tel" id="phone" value="138****8888" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                </div>
                                
                                <div>
                                    <label class="block text-white/70 text-sm font-medium mb-2" for="country">
                                        国家/地区
                                    </label>
                                    <select id="country" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                        <option>中国</option>
                                        <option>美国</option>
                                        <option>英国</option>
                                        <option>加拿大</option>
                                        <option>澳大利亚</option>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="mb-8">
                                <label class="block text-white/70 text-sm font-medium mb-2" for="bio">
                                    个人简介
                                </label>
                                <textarea id="bio" rows="4" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white" placeholder="介绍一下自己...">交易爱好者，关注加密货币市场动态。</textarea>
                            </div>
                            
                            <div class="flex flex-col sm:flex-row gap-4 mt-8">
                                <button type="button" class="w-full sm:w-auto px-6 py-3 bg-dark rounded-lg border border-white/10 text-white hover:bg-white/10 transition-colors font-medium flex items-center justify-center gap-2">
                                    取消
                                </button>
                                <button type="submit" class="w-full sm:w-auto px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                                    保存更改
                                </button>
                            </div>
                        </form>
                    </div>
                    
                    <!-- 通知设置选项卡 -->
                    <div id="notification" class="tab-content" style="display: none;">
                        <h2 class="text-xl font-bold mb-6">通知设置</h2>
                        
                        <div class="space-y-6">
                            <div class="bg-dark rounded-xl p-6 border border-white/10">
                                <h3 class="font-bold mb-4">交易通知</h3>
                                
                                <div class="space-y-4">
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">交易成功通知</h4>
                                            <p class="text-white/60 text-sm">当您的交易成功完成时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">待处理交易通知</h4>
                                            <p class="text-white/60 text-sm">当您有新的待处理交易时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">交易取消通知</h4>
                                            <p class="text-white/60 text-sm">当您的交易被取消时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="bg-dark rounded-xl p-6 border border-white/10">
                                <h3 class="font-bold mb-4">安全通知</h3>
                                
                                <div class="space-y-4">
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">登录提醒</h4>
                                            <p class="text-white/60 text-sm">当有新设备登录您的账户时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">安全设置更改</h4>
                                            <p class="text-white/60 text-sm">当您的安全设置被修改时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">资金变动提醒</h4>
                                            <p class="text-white/60 text-sm">当您的账户资金有变动时通知</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="bg-dark rounded-xl p-6 border border-white/10">
                                <h3 class="font-bold mb-4">营销通知</h3>
                                
                                <div class="space-y-4">
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">推广活动通知</h4>
                                            <p class="text-white/60 text-sm">接收平台推广活动和优惠信息</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox">
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">市场动态</h4>
                                            <p class="text-white/60 text-sm">接收加密货币市场动态和分析</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox">
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="flex justify-end mt-8">
                            <button class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                                保存设置
                            </button>
                        </div>
                    </div>
                    
                    <!-- 偏好设置选项卡 -->
                    <div id="preferences" class="tab-content" style="display: none;">
                        <h2 class="text-xl font-bold mb-6">偏好设置</h2>
                        
                        <div class="space-y-6">
                            <div class="bg-dark rounded-xl p-6 border border-white/10">
                                <h3 class="font-bold mb-4">界面设置</h3>
                                
                                <div class="space-y-4">
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">深色模式</h4>
                                            <p class="text-white/60 text-sm">使用深色主题界面</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                    
                                    <div>
                                        <label class="block text-white/70 text-sm font-medium mb-2" for="language">
                                            语言
                                        </label>
                                        <select id="language" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                            <option>简体中文</option>
                                            <option>English</option>
                                            <option>日本語</option>
                                            <option>한국어</option>
                                        </select>
                                    </div>
                                    
                                    <div>
                                        <label class="block text-white/70 text-sm font-medium mb-2" for="timezone">
                                            时区
                                        </label>
                                        <select id="timezone" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                            <option>GMT+8 (北京时间)</option>
                                            <option>GMT-5 (纽约时间)</option>
                                            <option>GMT+1 (伦敦时间)</option>
                                            <option>GMT+9 (东京时间)</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="bg-dark rounded-xl p-6 border border-white/10">
                                <h3 class="font-bold mb-4">交易设置</h3>
                                
                                <div class="space-y-4">
                                    <div>
                                        <label class="block text-white/70 text-sm font-medium mb-2" for="price-display">
                                            价格显示精度
                                        </label>
                                        <select id="price-display" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                            <option>2位小数</option>
                                            <option>4位小数</option>
                                            <option>6位小数</option>
                                            <option>8位小数</option>
                                        </select>
                                    </div>
                                    
                                    <div>
                                        <label class="block text-white/70 text-sm font-medium mb-2" for="volume-display">
                                            数量显示精度
                                        </label>
                                        <select id="volume-display" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                                            <option>2位小数</option>
                                            <option>4位小数</option>
                                            <option>6位小数</option>
                                            <option>8位小数</option>
                                        </select>
                                    </div>
                                    
                                    <div class="flex justify-between items-center">
                                        <div>
                                            <h4 class="font-medium">自动刷新市场数据</h4>
                                            <p class="text-white/60 text-sm">自动刷新市场行情数据</p>
                                        </div>
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="flex justify-end mt-8">
                            <button class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                                保存设置
                            </button>
                        </div>
                    </div>
                    
                    <!-- API管理选项卡 -->
                    <div id="api" class="tab-content" style="display: none;">
                        <h2 class="text-xl font-bold mb-6">API管理</h2>
                        
                        <div class="mb-8">
                            <p class="text-white/70 mb-4">API密钥可用于程序化访问您的账户。请确保您了解相关风险并妥善保管您的密钥。</p>
                            
                            <button class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2" onclick="showCreateApiModal()">
                                <i class="fa fa-plus mr-1"></i> 创建API密钥
                            </button>
                        </div>
                        
                        <div class="overflow-x-auto">
                            <table class="w-full">
                                <thead>
                                    <tr class="border-b border-white/10">
                                        <th class="text-left py-3 px-4 text-white/70 font-medium">标签</th>
                                        <th class="text-left py-3 px-4 text-white/70 font-medium">创建时间</th>
                                        <th class="text-left py-3 px-4 text-white/70 font-medium">权限</th>
                                        <th class="text-left py-3 px-4 text-white/70 font-medium">状态</th>
                                        <th class="text-left py-3 px-4 text-white/70 font-medium">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="border-b border-white/10">
                                        <td class="py-3 px-4">交易机器人</td>
                                        <td class="py-3 px-4">2023-06-01</td>
                                        <td class="py-3 px-4">交易、查询</td>
                                        <td class="py-3 px-4"><span class="text-success">活跃</span></td>
                                        <td class="py-3 px-4">
                                            <button class="text-primary hover:underline mr-4">查看</button>
                                            <button class="text-danger hover:underline">删除</button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="py-3 px-4">数据分析工具</td>
                                        <td class="py-3 px-4">2023-05-15</td>
                                        <td class="py-3 px-4">查询</td>
                                        <td class="py-3 px-4"><span class="text-danger">已禁用</span></td>
                                        <td class="py-3 px-4">
                                            <button class="text-primary hover:underline mr-4">查看</button>
                                            <button class="text-danger hover:underline">删除</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    
                    <!-- 删除账户选项卡 -->
                    <div id="delete" class="tab-content" style="display: none;">
                        <div class="bg-danger/10 rounded-2xl p-6 border border-danger/20 mb-8">
                            <h2 class="text-xl font-bold mb-4 text-danger">删除账户</h2>
                            <p class="text-white/70">删除账户是一个不可逆的操作，将永久删除您的所有数据和交易记录。请确保您了解相关风险。</p>
                        </div>
                        
                        <div class="bg-dark rounded-xl p-6 border border-white/10 mb-8">
                            <h3 class="font-bold mb-4">删除前请确认</h3>
                            
                            <ul class="space-y-3 text-white/70 mb-6">
                                <li class="flex items-start">
                                    <i class="fa fa-exclamation-circle text-danger mt-1 mr-3"></i>
                                    <span>删除账户后，您将无法恢复任何数据或重新激活该账户</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fa fa-exclamation-circle text-danger mt-1 mr-3"></i>
                                    <span>请确保您已提取所有资金，删除账户后将无法访问您的余额</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fa fa-exclamation-circle text-danger mt-1 mr-3"></i>
                                    <span>所有未完成的交易将被取消，您需要自行处理相关事务</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fa fa-exclamation-circle text-danger mt-1 mr-3"></i>
                                    <span>您的个人信息和交易历史将被永久删除</span>
                                </li>
                            </ul>
                            
                            <div class="flex items-center mb-4">
                                <input type="checkbox" id="confirm-delete" class="mr-3">
                                <label for="confirm-delete" class="text-white/70">我已阅读并理解上述风险，确认要删除我的账户</label>
                            </div>
                            
                            <button class="w-full px-6 py-3 bg-danger text-white rounded-lg hover:bg-danger/90 transition-colors font-medium flex items-center justify-center gap-2" disabled id="delete-account-btn">
                                <i class="fa fa-trash mr-1"></i> 确认删除账户
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 创建API密钥模态框 -->
    <div id="create-api-modal" class="fixed inset-0 bg-black/50 z-50 flex items-center justify-center hidden">
        <div class="bg-dark-blue rounded-2xl p-6 border border-white/10 w-full max-w-md mx-4 relative">
            <button class="absolute top-4 right-4 text-white/70 hover:text-white" onclick="closeCreateApiModal()">
                <i class="fa fa-times text-xl"></i>
            </button>
            
            <h3 class="text-xl font-bold mb-6">创建API密钥</h3>
            
            <form>
                <div class="space-y-4 mb-6">
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="api-label">
                            密钥标签
                        </label>
                        <input type="text" id="api-label" placeholder="例如：交易机器人" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2">
                            API权限
                        </label>
                        <div class="space-y-3 bg-dark rounded-lg p-4 border border-white/10">
                            <div class="flex items-center">
                                <input type="checkbox" id="api-read" class="mr-3">
                                <label for="api-read" class="text-white/70">读取数据（余额、交易历史等）</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="api-trade" class="mr-3">
                                <label for="api-trade" class="text-white/70">交易（下单、撤单等）</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="api-withdraw" class="mr-3">
                                <label for="api-withdraw" class="text-white/70">提现（资金转出）</label>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <label class="block text-white/70 text-sm font-medium mb-2" for="api-ip">
                            限制IP访问（可选）
                        </label>
                        <input type="text" id="api-ip" placeholder="例如：192.168.1.1" class="w-full px-4 py-3 bg-dark border border-white/10 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary text-white">
                        <p class="text-white/60 text-xs mt-1">多个IP地址请用逗号分隔，留空则不限制</p>
                    </div>
                </div>
                
                <div class="flex flex-col sm:flex-row gap-4 mt-8">
                    <button type="button" class="w-full sm:w-auto px-6 py-3 bg-dark rounded-lg border border-white/10 text-white hover:bg-white/10 transition-colors font-medium flex items-center justify-center gap-2" onclick="closeCreateApiModal()">
                        取消
                    </button>
                    <button type="submit" class="w-full sm:w-auto px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium flex items-center justify-center gap-2">
                        创建API密钥
                    </button>
                </div>
            </form>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark-blue border-t border-white/10">
        <div class="container mx-auto px-4 py-12">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <div class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center">
                            <i class="fa fa-exchange text-white text-xl"></i>
                        </div>
                        <h2 class="text-xl font-bold bg-gradient-to-r from-primary to-success bg-clip-text text-transparent">USDT<span class="text-sm font-normal ml-1">Market</span></h2>
                    </div>
                    <p class="text-white/60 mb-4">安全、便捷的USDT交易平台，支持多种本币出售，平台担保交易，保障资金安全</p>
                    <div class="flex space-x-4">
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-twitter"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-telegram"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-discord"></i>
                        </a>
                        <a href="#" class="w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-white hover:bg-primary transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">出售服务</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">USDT出售流程</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">设置出售价格</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">添加收款方式</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">认证卖家权益</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">提现到银行卡</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">资源中心</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">新手教程</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">安全指南</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">交易规则</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">联系客服</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">法律合规</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">服务条款</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">风险提示</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">合规声明</a></li>
                        <li><a href="#" class="text-white/60 hover:text-primary transition-colors">知识产权</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="h-px bg-white/10 my-8"></div>
            
            <div class="flex flex-col md:flex-row justify-between items-center">
                <p class="text-white/60 text-sm mb-4 md:mb-0">© 2025 USDTMarket. 保留所有权利。平台不参与任何资金交易，仅提供信息匹配服务。</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">隐私政策</a>
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">服务条款</a>
                    <a href="#" class="text-white/60 hover:text-primary transition-colors text-sm">风险提示</a>
                </div>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        const navbar = document.getElementById('navbar');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 10) {
                navbar.classList.add('bg-dark-blue/90');
                navbar.classList.add('shadow-lg');
            } else {
                navbar.classList.remove('bg-dark-blue/90');
                navbar.classList.remove('shadow-lg');
            }
        });
        
        // 选项卡切换
        function showTab(tabName) {
            // 隐藏所有选项卡内容
            document.querySelectorAll('.tab-content').forEach(tab => {
                tab.style.display = 'none';
            });
            
            // 显示选中的选项卡内容
            document.getElementById(tabName).style.display = 'block';
            
            // 更新选项卡按钮样式
            document.querySelectorAll('.tab-button').forEach(button => {
                button.classList.remove('text-primary', 'border-primary', 'border-b-2', 'font-medium');
                button.classList.add('text-white/70');
            });
            
            document.querySelector(`.tab-button[onclick="showTab('${tabName}')"]`).classList.add('text-primary', 'border-primary', 'border-b-2', 'font-medium');
            document.querySelector(`.tab-button[onclick="showTab('${tabName}')"]`).classList.remove('text-white/70');
        }
        
        // 确认删除账户复选框状态变化
        document.getElementById('confirm-delete').addEventListener('change', function() {
            document.getElementById('delete-account-btn').disabled = !this.checked;
        });
        
        // 创建API模态框
        function showCreateApiModal() {
            document.getElementById('create-api-modal').classList.remove('hidden');
        }
        
        function closeCreateApiModal() {
            document.getElementById('create-api-modal').classList.add('hidden');
        }
    </script>
</body>
</html>
    